<!--
- @founder   IT柏拉图, https: //weibo.com/itprato
- @author    DedeCMS团队
- @copyright Copyright (c) 2007 - 2021, 上海卓卓网络科技有限公司 (DesDev, Inc.)
--->

<html>
<head>
<meta charset="{dede:global.cfg_soft_lang/}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>图片水印设置</title>
<meta name="copyright" content="2007-2021 DedeCMS, 上海卓卓网络科技有限公司 (DesDev, Inc.)" />
<link rel="icon" href="/favicon.ico" />
<!-- CSS FILES -->
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/uikit/css/uikit.min.css" />
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/css/manage.dede.css">
<style type="text/css">
.uk-table td{
padding: 6px 12px;
vertical-align: top;
height: 35px;
}
</style>
</head>
<body>
<!-- 列表头部 -->
<div id="Table_Header_202X2W2X1X292F" class="uk-card uk-card-small uk-card-default" uk-sticky="bottom: #offset">
<div id="Header_1W2T2S2T1V252B" class="uk-card-header">
<div class="uk-grid uk-grid-small uk-text-small">
<span><ul class="uk-breadcrumb"><li><span>图片水印设置</span></li></ul></span>
</div>
</div>
</div>
<!-- /列表头部 -->
<!-- 列表主体 -->
<div class="uk-card uk-card-small uk-card-default" style="top:-20px;margin-bottom: 50px;">
<div class="uk-card-body uk-overflow-auto" grid>
<div class="uk-child-width-1-1 uk-padding">
<table width="98%" border="0" cellpadding="1" cellspacing="1" class="uk-table">
<form action="sys_info_mark.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="action" value="save">
<input type="hidden" name="get_photo_markimg" value="<?php echo $photo_markimg?>">
<tr>
<td width="20%">上传的图片是否使用图片水印功能：<br> </td>
<td>
<input class="uk-radio" type="radio" value="1" name="get_photo_markup"<?php if($photo_markup=='1') echo ' checked';?>> 开启 &nbsp;&nbsp;
<input class="uk-radio" type="radio" value="0" name="get_photo_markup"<?php if($photo_markup=='0') echo ' checked';?>> 关闭
</td>
</tr>
<tr>
<td>采集的图片是否使用图片水印功能：</td>
<td>
<input class="uk-radio" type="radio" value="1" name="get_photo_markdown"<?php if($photo_markdown=='1') echo ' checked';?>> 开启 &nbsp;&nbsp;
<input class="uk-radio" type="radio" value="0" name="get_photo_markdown"<?php if($photo_markdown=='0') echo ' checked';?>> 关闭
</td>
</tr>
<tr>
<td>选择水印的文件类型：</td>
<td>
<input name="get_photo_marktype" type="radio" class="uk-radio" value="0" <?php if($photo_marktype == 0) echo 'checked'?>> gif &nbsp;&nbsp;
<input type="radio" name="get_photo_marktype" class="uk-radio" value="1" <?php if($photo_marktype == 1) echo 'checked'?>> png &nbsp;&nbsp;
<input type="radio" name="get_photo_marktype" class="uk-radio" value="2" <?php if($photo_marktype == 2) echo 'checked'?>> 文字
</td>
</tr>
<tr>
<td>添加水印的图片大小控制（设置为0为不限）：</td>
<td>
宽： <input name="get_photo_wwidth" type=text id="get_photo_wwidth" value="<?php echo $photo_wwidth?>" class="uk-input uk-form-small uk-form-width-small">
高： <input name="get_photo_wheight" type=text id="get_photo_wheight" value="<?php echo $photo_wheight?>" class="uk-input uk-form-small uk-form-width-small"> </td>
</tr>
<tr>
<td>水印图片文件名（如果不存在，则使用文字水印）：</td>
<td><img src="../data/mark/<?php echo $photo_markimg; ?>" alt="dede"></td>
</tr>
<tr>
<td>上传新图片：</td>
<td>
<div class="uk-margin" uk-margin>
<div class='uk-inline uk-form-custom' uk-form-custom='target: true'>
<span class='uk-form-icon uk-icon' uk-icon='icon: upload'></span>
<input name="newimg" type="file">
<input class="uk-input uk-form-small uk-form-width-large" type="text" placeholder="支持的图片格式：gif png" disabled>
</div>
</div>
</td>
</tr>
<tr>
<td>水印图片文字：</td>
<td> <input type="text" name="get_photo_watertext" class="uk-input uk-form-small uk-form-width-medium" value="<?php echo $photo_watertext?>"> (请查看data\mark\simhei.ttf字体库是否存在)</td>
</tr>
<tr>
<td>水印图片文字字体大小：</td>
<td> <input name="get_photo_fontsize" type=text class="uk-input uk-form-small uk-form-width-medium" value="<?php echo $photo_fontsize?>"></td>
</tr>
<tr>
<td>水印图片文字颜色（默认#FF0000为红色）：</td>
<td> <input name="get_photo_fontcolor" type=text class="uk-input uk-form-small uk-form-width-medium" value="<?php echo $photo_fontcolor?>"></td>
</tr>
<tr>
<td>JPEG 质量</td>
<td>
<input type="text" name="get_photo_marktrans" class="uk-input uk-form-small uk-form-width-medium" value="<?php echo $photo_marktrans?>"> 0—100，数值越大结果图片效果越好，但尺寸也越大。</td>
</tr>
<tr>
<td>GIF水印融合度：</td>
<td>
<input name="get_photo_diaphaneity" type=text class="uk-input uk-form-small uk-form-width-medium" value="<?php echo $photo_diaphaneity?>"> 水印透明度（0—100，值越小越透明）</td>
</tr>
<tr>
<td>水印位置：</td>
<td>
<input class="uk-radio" type="radio" name="get_photo_waterpos" value="0"<?php if($photo_waterpos==0) echo ' checked';?>>
随机位置
<table border="1" class="uk-table" style="width:350px">
<tr>
<td width="33%"><input class="uk-radio" type="radio" name="get_photo_waterpos" value="1"<?php if($photo_waterpos==1) echo ' checked';?>>顶部居左</td>
<td width="33%"><input class="uk-radio" type="radio" name="get_photo_waterpos" value="2"<?php if($photo_waterpos==2) echo ' checked';?>>顶部居中</td>
<td><input class="uk-radio" type="radio" name="get_photo_waterpos" value="3"<?php if($photo_waterpos==3) echo ' checked';?>>顶部居右</td>
</tr>
<tr>
<td><input class="uk-radio" type="radio" name="get_photo_waterpos" value="4"<?php if($photo_waterpos==4) echo ' checked';?>>左边居中</td>
<td><input class="uk-radio" type="radio" name="get_photo_waterpos" value="5"<?php if($photo_waterpos==5) echo ' checked';?>>图片中心</td>
<td><input class="uk-radio" type="radio" name="get_photo_waterpos" value="6"<?php if($photo_waterpos==6) echo ' checked';?>>右边居中</td>
</tr>
<tr>
<td><input class="uk-radio" type="radio" name="get_photo_waterpos" value="7"<?php if($photo_waterpos==7) echo ' checked';?>>底部居左</td>
<td><input class="uk-radio" type="radio" name="get_photo_waterpos" value="8"<?php if($photo_waterpos==8) echo ' checked';?>>底部居中</td>
<td><input name="get_photo_waterpos" type="radio" class="uk-radio" value="9"<?php if($photo_waterpos==9) echo ' checked';?>>底部居右</td>
</tr>
</table></td>
</tr>
</table>
</div>
</div>
<div class="uk-card-footer " >
<div class="uk-padding-small" >
<button type="submit" class="uk-button uk-button-small uk-button-primary">提交</button>
</div>
</div>
</div>
</form>
<!-- 列表底部 -->
<div class="bar-bottom uk-flex uk-light uk-flex-right">
<div class="uk-button-group" style="margin-left: 50px;">
</div>
<div class="e1e02">Copyright &copy; 2007-2021 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>, 上海卓卓网络科技有限公司 (DesDev, Inc.)</div>
</div>
<!-- 列表底部 -->
<!-- JS FILES -->
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit-icons.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/jquery/jquery.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/js/dede.manage.min.js"></script>
<!-- / JS FILES -->
</body>
</html>
